#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
    /*******************code*******************/
    char s1[10] = "123456789";
    char s2[10] = {'\0'};
    strncpy(s2, &s1[3], 3);

    printf("%s", s2);
    /******************************************/
    printf("\n\n****************************\n");
    printf("Press Enter key to continue\n");
    getchar();
    return 0;
    /******************************************/
}
